class Car {
    private String brand;//品牌
    private double emission;//排气量
    private double price;//价格

    public Car(String brand, double emission, double price) {
        this.brand = brand;
        this.emission = emission;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void starting() {
        System.out.println("发动机启动了！");
    }
}

class Hand {
    private double length;
    private double area;
    private double grip;

    public Hand(double length, double area, double grip) {
        this.length = length;
        this.area = area;
        this.grip = grip;
    }

    public void catching(String thing) {
        System.out.println("用手抓住了" + thing);
    }

    public void getInfo() {
        System.out.println("手指长度: " + length + "厘米");
        System.out.println("手掌面积: " + area + "平方厘米");
        System.out.println("握力: " + grip + "kg");
    }
}

class Person {
    private String id;
    private String name;
    private int age;
    private Hand hand;

    public Person() {
    }

    public Person(String id, String name, int age, Hand hand) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.hand = hand;
    }

    public String getName() {
        return name;
    }

    public void showPerson() {
        System.out.println("身份证号码: " + id);
        System.out.println("姓名: " + name);
        System.out.println("年龄: " + age);
        hand.getInfo();
    }

    public void saying(Person per, String msg) {
        System.out.println(name + "对" + per.getName() + "说: " + msg);
    }

    public void getSomething(String something) {
        hand.catching(something);
    }

    public void start(Car car) {
        car.starting();
    }
}

public class Demo {
    public static void main(String[] args) {
        Car car = new Car("红旗L5", 3.0, 250000);
        Hand hand = new Hand(8, 42, 45);
        Person sunWukong = new Person("001", "孙悟空", 500, hand);
        Person zhuBajie = new Person("002", "猪八戒", 300, hand);

        sunWukong.saying(zhuBajie, "八戒，你这个呆子！");
        sunWukong.getSomething("金箍棒");
        sunWukong.start(car);
    }
}